import fly from "../utils/request.js";
// 获取token
export const login = (data) => 
fly.post("authorizations", data);
// 获取验证码
export const yzm = (data) => 
fly.get(`sms/codes/${data}`);
// 获取个人信息
export const user = () => {
    return fly.get('/user')
  }
  // 获取详情页
  export const details=(id)=>{
    return fly.get(`articles/${id}`)
  }
  // 获取编辑个人信息
  export const profile = () => {
    return fly.get('user/profile')
  }